<?php

// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class OrderTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			Order::create([
                'customer_id'   => $faker->randomNumber(1),
                'event'    => $faker->sentence($nbWords = 1),
                'remark'    => $faker->sentence($nbWords = 10),
                'status' => rand(0,2),
			]);
		}
	}

}